package com.happycat.social.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.happycat.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;


/**
 * 房间麦位
 * 
 * @author jsonbin
 * @date 2020-09-10
 */
@Data
@ToString
@EqualsAndHashCode
@NoArgsConstructor
@TableName("social_voice_room_wheat")
@ApiModel(value="房间麦位", description="房间麦位")
public class SocialVoiceRoomWheat extends BaseEntity<Long> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "房间id,平台房间id")
    @TableField(value = "svr_id")
    private Long svrId;

    @ApiModelProperty(value = "聊天室房间号(第三方房间/频道id)")
    @TableField(value = "room_id")
    private String roomId;

    @ApiModelProperty(value = "麦位编号")
    @TableField(value = "sort")
    private Integer sort;

    @ApiModelProperty(value = "麦位名称")
    @TableField(value = "name")
    private String name;

    @ApiModelProperty(value = "当前麦位用户主键id")
    @TableField(value = "account_id", updateStrategy = FieldStrategy.IGNORED)
    private Long accountId;

    @ApiModelProperty(value = "该麦位用户id(第三方用户id)")
    @TableField(value = "user_id", updateStrategy = FieldStrategy.IGNORED) // 更新时若为空，则强制更新null到数据库
    private String userId;

    @ApiModelProperty(value = "是否主持人:0否，1是")
    @TableField(value = "hostess")
    private String hostess;

    @ApiModelProperty(value = "该麦位是否被封:0否(可用)，1是(被封)")
    @TableField(value = "forbid")
    private String forbid;

    @ApiModelProperty(value = "额外字段，可由前端自定义, 如性别")
    @TableField(value = "ext1")
    private String ext1;

    @ApiModelProperty(value = "额外字段，可由前端自定义, 如Boss位")
    @TableField(value = "ext2")
    private String ext2;

}
